<template>
  <el-container>
    <basic-crud :option="option" businessUrl="/org/positionController"> </basic-crud>
  </el-container>
</template>

<script setup>
const option = {
  viewBtn: true,
  menuWidth: 240,
  statusBtn: true,
  column: [
    {
      label: '编号',
      prop: 'code',
      sort: true,
      search: true,
      width: 150,
      rules: [{ required: true, message: '请输入编号', trigger: 'blur' }],
    },
    {
      label: '名称',
      prop: 'name',
      sort: true,
      width: 150,
      search: true,
      rules: [{ required: true, message: '请输入名称', trigger: 'blur' }],
    },
    {
      label: '岗位序列',
      prop: 'positionClassify',
      width: 150,
      rules: [{ required: true, message: '请输入岗位序列', trigger: 'blur' }],
    },
    {
      label: '状态',
      prop: 'status',
      sortable: true,
      search: true,
      type: 'select',
      statusTag: true,
      display: false,
      enumCode: 'statusDic',
      width: 120,
    },
    {
      label: '描述',
      prop: 'des',
      span: 24,
      type: 'textarea',
      rules: [{ required: true, message: '请输入岗位描述', trigger: 'blur' }],
    },
  ],
}
</script>

<style lang="scss" scoped></style>
